home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / maxref.arc / TUTORIAL.TXT < prev    next >
Text File  |  1986-04-05  |  14KB  |  304 lines

  1.  
  2.  
  3.  
  4.                                -PAGE 1-                       TUTORIAL-I V0.2
  5. Topics:   Notation | CTL-V
  6.  
  7. This is an interactive tutorial which will teach you how to use this editor.
  8. Please read carefully through each page, and then follow the instructions.
  9.  
  10. There are two different kind of commands which you can give to the editor,
  11. namely "control-commands" and "escape sequences." You can perform the first
  12. by holding down the CONTROL ( ALT ) key and pressing another key simulta-
  13. neously. You can specify the second by pressing the ESCAPE key once, and
  14. then, afterwards,  another key.   We will use the following abbreviation
  15. convention. CTL-x means holding down CONTROL and pressing key x, ESC-x
  16. means pressing ESCAPE and then key x.
  17.  
  18. The purpose of an editor is to edit a document ( file ). You will always see
  19. a screenful of information. Now you are looking at page ( screen ) 1 of this
  20. tutorial. For your convenience, the header above specifies the page you are
  21. on.    The command to advance to the next screen is CTL-V ( for vertical ).
  22. Hold down the CONTROL key and press v or V, and page 2 will appear.
  23.  
  24. *End of Page 1*
  25.                                -PAGE 2-                       TUTORIAL-I V0.2
  26. Topics:   Paging | ESC-V
  27.  
  28.  
  29. Now you have learned how to go to following pages. But note that one line
  30. of the last page is still on top of the screen. This is to allow for your
  31. easier recognition and more continuity between consecutive pages.
  32.  
  33.  
  34. The next command to remember is the command to go back one page ( screen-
  35. ful ) in your document. This will enable you to view a file page by page,
  36. just like you can go through a real document, and page back. The command
  37. is ESC-V. To go back to the previous screen ( the one you saw the when
  38. you started this tutorial, and whose last line is the line you see on top
  39. of this page ) press ESCAPE once.  Now you should see below the modeline an
  40. inverse "ESC-" message. This means the editor has recognized that you wish
  41. to input an escape sequence, and is waiting for its completion. When you
  42. press  V , you will see the last page. After you have done this do a CTL-V
  43. to come back here, and another one to go to page 3.
  44.  
  45.                                -PAGE 3-                       TUTORIAL-I V0.2
  46. Topics:  Cursor | Modeline
  47.  
  48. The most important idea about the use of the editor which you will have to
  49. understand is the cursor. The cursor is just like a pen which you use for
  50. editing a document by hand. Most things you do ( like crossing out charac-
  51. ters, writing etc. ) takes place on the character below the pen.
  52.  
  53. The cursor is like an electronic pen which you can move through your file.
  54. Most things you do, like writing, takes place where your cursor is. The
  55. cursor is always located at the character which is displayed in inverse
  56. color, in this case it is in line 1, column 1 of this page. Look at it.
  57.  
  58. The modeline is the top line. It informs you about the name of the file that
  59. you are editing ( in this case TUTORIAL.TXT ), its size, date, time and some
  60. more things. Important now is that the number after COL tells you which column
  61. the cursor is in on its line, and the number after it ( e.g. -- 10%-- ) tells
  62. you at which percentage in tems of the size of the file the cursor is on.
  63. 0 % is the beginning, 100% the end of the file.
  64. . , . , . , . , . , . , . , . , . , . , . , . , . , . , . , . , . , . , . , 
  65.                                -PAGE 4-                       TUTORIAL-I V0.2
  66. Topics:  Character Insertion | Wraparound
  67.  
  68. To insert text, simply type characters. These characters are inserted at the
  69. cursor position. The cursor moves one right and all characters right of it
  70. are shifted right, so as to make space for your new character. This is called
  71. "insert" mode. Although it may require some adaptation, you will find "insert"
  72. mode more economical and more error-proof than the typewriter-like overstrike
  73. mode.
  74.  
  75. What happens if I want more than 80 characters on a line ? Well, in this case
  76. the editor will change the < at the end of the line to !, open a new line
  77. below, and continue the line on the newly opened line. It will treat the two
  78. physical lines as one logical lines. For instance when you insert characters
  79. on the start of a line, characters on such an extension-line are shifted right
  80. just like the characters on the first line, and the character on the end of
  81. the first line becomes the first character on the continuation line. This is
  82. called wraparound. Now just type your name, and watch the described action.
  83.  
  84.                                -PAGE 5-                       TUTORIAL-I V0.2
  85. Topics:  Cursor Movement | CTL-B | CTL-F | CTL-A | CTL-E
  86.  
  87. Your name has disappeared - of course, we are on another page. Please type it
  88. again.
  89.  
  90. Of course you will also wish to insert text anywhere on this line, not only on
  91. the cursor position ( the start of the line ). For this you will want to move
  92. your cursor freely on this line.
  93.  
  94. CTL-B moves the cursor B-ackwards, CTL-F F-orwards. Make sure not to move out
  95. of this line. You do not know other commands yet to get back to this paging.
  96. This is not tragic, but will distort the nice "screen-ful" organization of
  97. this tutorial.
  98.  
  99. CTL-A moves the cursor directly to the start of the line, CTL-E to the E-nd of
  100. the line. Now move the cursor a little around, and insert some text at various
  101. points ( e.g. insert your middle name ).
  102.  
  103.  
  104.                                -PAGE 6-                       TUTORIAL-I V0.2
  105. Topics:  Cursor Movement | CTL-N | CTL-P
  106.  
  107.  
  108. The command to move down one line, to the N-ext line is CTL-N, the command to
  109. move up one line, to the P-revious line is CTL-P.
  110.  
  111.  
  112. Again, try to stay on this screen, because otherwise VIDEO-84 would try to
  113. center the screen for you. The cursor would be in the middle of the screen,
  114. but you would loose the nice tutorial paging,
  115.  
  116.  
  117. Below is an incomplete sentence. Move down to the correct line, then to the
  118. place where you wish to insert text, and insert it.
  119.  
  120.         It is a lot easier to fight mythan to fight computers,
  121.         but it is a lot hrdr to ignore my thn my.
  122.  
  123.  
  124.                                -PAGE 7-                       TUTORIAL-I V0.2
  125. Topics:   Cursor Movement : Summary
  126.  
  127. You should remember the following commands by now:
  128.  
  129.  
  130. CTL-V   go to the next page
  131. ESC-V   go to the last page
  132.  
  133.  
  134. CTL-A   go to the start of the line
  135. CTL-E   go to the   end of the line
  136.  
  137.  
  138. CTL-F   advance one character              |             CTL-P
  139. CTL-B   retreat one character              |     CTL-B           CTL-F
  140. CTL-P   go to the previous line ( up )     |             CTL-N
  141. CTL-N   go to the     next line ( down )   |
  142.  
  143.  
  144.                                -PAGE 8-                       TUTORIAL-I V0.2
  145. Topics:  Character Deletion
  146.  
  147. There are two commands to delete one character: CTL-D and the DEL key.
  148. CTL-D deletes the character at the cursor position, and DEL deletes the
  149. character one before the cursor position. The first is more often used.
  150. The second is handy when you insert a lot of text and want to correct the
  151. typo(s) you just made, and are to lazy to move back and then delete.
  152.  
  153. These commands also work with the end of lines. They delete the lineend, and
  154. thereby attach the second logical line to the first logical line.
  155.  
  156. Below is a line with some obvious errors. Use the cursor commands that you
  157. already know to move the cursor there, delete the mistakes, and insert the
  158. correct words.
  159.  
  160.         In the bginnning, God createdfsh
  161.  
  162.  
  163.  
  164.                                -PAGE 9-                       TUTORIAL-I V0.2
  165. Topics:  Centering | CTL-L
  166.  
  167. Do you remember the warnings not to leave the page with other commands
  168. than CTL-V and ESC-V ? This is because as soon as you move your cursor
  169. to a character not on the screen, VIDEO-84 will update the screen such
  170. that the cursor is in the center of the screen. This allows you to easily
  171. work through a document while seeing the cursor without page commands.
  172. Only in the case of the tutorial, this feature would throw you out of my
  173. special page by page organization. Pages do not really exist - I had to
  174. count lines to see how many lines I wished on a page.
  175.  
  176. CTL-L will center your cursor whereever you are in the file and rebuild the
  177. screen. Try it when you have read through this page ( also try CTL-P and other
  178. commands at the start of a page ). Then go down line by line, and try CTL-L
  179. each line. You will see that the entire page shifts up one line ( since
  180. you center now in another place. Do this until you see in the last line
  181. the same thing you see now, and then go to the next page.
  182.  
  183. *Last Line of Page 9*
  184.                               -PAGE 10-                       TUTORIAL-I V0.2
  185. Topics:  Editing a File | CTL-X CTL-V
  186.  
  187. Now you know all the necessary action to manipulate a file. But where do you
  188. get the file from ? There are two ways:
  189.  
  190. Firstly, you can specify when you start VIDEO-84 that you want to edit a
  191. specific file. For example, if you type to the DOS prompt:
  192.     A>VIDEO-84 TUTORIAL.TXT    (the general Format is: >VIDEO-84 filename.ext)
  193. VIDEO-84 will read the command line, discover that you wish to edit a file
  194. named TUTORIAL.TXT, and this is exactly what you are doing right now.
  195. Secondly, when you are already inside VIDEO-84, you can wish to edit another
  196. file. The command is   CTL-X  CTL-V, which stands for "extended command -
  197. Visit a file." VIDEO-84 will ask you for its name ( use CTL-G if you changed
  198. your mind and don't want to visit another file ) and confirmation to throw
  199. away what you are editing at the moment (for your protection against mistakes)
  200.  
  201. If you want to create a new file instead of editing an existing file, just
  202. specify a filename of a nonexisting file, and VIDEO-84 will create it for you.
  203.  
  204.                               -PAGE 11-                       TUTORIAL-I V0.2
  205. Topics:  Saving and Writing | CTL-X CTL-S | CTL-X CTL-W | CTL-X CTL-Z
  206.  
  207. Now you can edit a file of your choice and manipulate it in any way you like.
  208. But you still don't know how to save your work to the disk, so as to use
  209. it for other things like printing, processing etc.
  210.  
  211. CTL-X CTL-S  will save your work as the filename which you see specified in
  212. the first line ( presently it is A:TUTORIAL.TXT ). However, if you wish to
  213. write your work to a file with a different name ( and thereby keeping the
  214. original version of this file under the old name on disk ), you will have to
  215. use the command CTL-X CTL-W. Just like when you visit a file, VIDEO-84 will
  216. ask you for the new name under which to save your work.
  217.  
  218. ! ATTENTION: DO NOT SAVE YOUR FILE NOW - YOU WOULD SAVE ALSO ALL
  219. !            THE CHANGES YOU MADE DURING YOUR LEARNING SESSION !
  220.  
  221.  
  222.  
  223.  
  224.                               -PAGE 12-                       TUTORIAL-I V0.2
  225. Topics:  Documentation
  226.  
  227. Now you know enough to create and manipulate files in any way you like to.
  228. Of course, there are more powerful commands, too, but the commands which this
  229. file tought you, allow you to start using and familiarizing yourself with the
  230. VIDEO-84. There are more powerful commands, but they are extras, nice ones
  231. but only extras.
  232. What other documentation can you get ? As you may remember, VIDEO-84 is an
  233. EMACS-lookalike editor. Worst case EMACS information or any other EMACS-look-
  234. alike editors ( like Perfect-Writer or MINCE ) have more information.
  235. CTL-H ( or the help key on your keyboard ) will put you into a help mode,
  236. which will remind you of all the available commands. Try it, then come back
  237. with ESC. Of course, there is always the written documentation: the handbook,
  238. the reference guide and the keyboard layout description which you can consult.
  239. New information may be available from newsletters and magazines, or private
  240. individuals distributing information. [If you decide to create new documenta-
  241. tion, please contact the author who will make it available to all users,
  242. which in the end will benefit all buyers.]
  243.  
  244.                               -PAGE 13-                       TUTORIAL-I V0.2
  245. Topics:  More Advanced Commands
  246.  
  247. If you are familiar with all these commands, and you have exercised enough
  248. with them, you can start using the more powerful commands. There is a second
  249. tutorial available for these commands.
  250.  
  251. To give you an idea what you can do, here are some points: 
  252.         - move by word, or globally
  253.         - search for text
  254.         - search and replace text by other text (*)
  255.         - switch buffers
  256.         - use windows (*)
  257.         - give arguments to functions
  258.         - insert Control-Characters
  259.         - kill and yank back lines, words or regions
  260.         - format paragraphs (*)
  261.         - define and invoke macro commands (*)
  262.         - and many more things...
  263.  
  264.                               -PAGE 14-                       TUTORIAL-I V0.2
  265. Topics:  Exiting from VIDEO-84 | CTL-X CTL-Z
  266.  
  267. I guess the best thing I can do for you now is to ask you to practice all the
  268. commands which you have learned in this tutorial. Create some nonsense files
  269. and play with the commands you know. It should take you no more than two
  270. days of intensive practicing to know VIDEO-84 command sequences by heart.
  271. Don't worry if it takes you longer, though. Es ist noch kein Meister vom
  272. Himmel gefallen.
  273.  
  274. Probably you are tempted now to use all the arrow and function keys that your
  275. keyboard offers : They are defined, and do the same things for you without
  276. you having to remember the long sequences. But it will be to your advantage
  277. to know exactly what you are doing. So don't use the fancy keys right from
  278. the beginning.
  279.  
  280. Now I can finally tell you how to exit VIDEO-84. The command is CTL-X CTL-Z.
  281. It will zap you right out of the editor, back to the DOS, after you confirm
  282. as VIDEO asks you with CTL-Y.
  283.  
  284.                                 GOOD LUCK
  285. ...and thank you for your choice,
  286.  
  287. Ivo Welch
  288. ---------------------------------------------------------------------------
  289. VIDEO-84 
  290. Version 0.7, (C) Ivo Welch, 1984
  291.  
  292. VIDEO-84 Tutorial
  293. Version 0.2, (C) Ivo Welch, 1984
  294.  
  295. ---------------------------------------------------------------------------
  296. Other companies mentioned in this document:
  297.  
  298. EMACS           is a trademark of MIT ??
  299.  
  300. Perfect Writer  is a trademark of Perfect Software
  301.  
  302. MINCE           is a trademark of Mark of the Unicorn
  303.  
  304.